<template>
  <div class="site-wrapper site-page--not-found">
    <div class="not-found-container">
      <img
        src="~@/assets/img/404.png"
        alt="404"
      >
      <div class="content">
        <div class="text">
          {{ $t('homes.sorry') + $t('homes.miss') + $t('homes.la') }}
        </div>
        <div class="btns">
          <div
            class="default-btn"
            @click="$router.go(-1)"
          >
            {{ $t('homes.goBack') }}
          </div>
          <div
            class="default-btn primary-btn"
            @click="$router.push({ name: 'home' })"
          >
            {{ $t('homes.enterMain') }}
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup></script>

<style lang="scss" scoped>
.site-wrapper.site-page--not-found {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  .not-found-container {
    margin-top: 15vh;
    align-items: center;
    display: flex;
    flex-direction: column;
    img {
      width: 600px;
      height: 280px;
    }
    .content {
      .text {
        color: #666;
        font-size: 28px;
        margin: 40px 0;
      }
      .btns {
        display: flex;
        justify-content: center;
        .default-btn + .default-btn {
          margin-left: 20px;
        }
      }
    }
  }
}
</style>
